import { get, post } from '../api';

export function createTopic(type, topic) {
    return post('createExercise', { type, topic })
}
export function deleteTopic(tid) {    
    return post('deleteExercise', tid)
}
export function editTopic(topic) {
    return post('editExercise', topic)
}
export function getTopic(categories) {
    return post('getExercise', categories)
}
export function searchTopic(type, keyword) {
    return get('searchTopic', { type, keyword })
}
